Skip to main content

Applying the SPD approximation to negative weights

bootstrap
programming
simulation
statistics
uncertainty analysis
Published

April 22, 2020

In Bohm and Zech, NIMA 748 (2014) 1-6, the scaled Poisson distribution is discussed, which is an approximate distribution for sums of weights. This distribution is used in fits to histograms which are filled with weighted samples.

I demonstrate here that a fit based on the SPD performs better than a least-squares fit, which effectively uses a normal distribution instead of the SPD to describe random fluctuations. I run repeated simulations in which weighted samples are generated. They are filled into a generalized histogram that keeps track of the variance of the weights. The cost function for the fit is simple: all bins in the histogram have the same constant expectation. The cost is computed with the least-squares method and the SPD method, respectively.

I measure the bias and the variance of the results in repeated toy experiments. The SPD-based cost function yields a smaller bias and the estimated uncertainty better reflects the true variance of the fit results.

LSQ
  relative bias = -0.042
  average estimated variance 1.966, true variance 2.158
ML
  relative bias = -0.001
  average estimated variance 2.008, true variance 2.035